package cn.uniquesoft.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import cn.uniquesoft.mapper.MenuMapper;
import cn.uniquesoft.service.IMenuService;
import cn.uniquesoft.service.base.BaseServiceImpl;
import cn.uniquesoft.vo.MenuVO;
import cn.uniquesoft.vo.RoleMenuVO;

@Service
public class MenuServiceImpl extends BaseServiceImpl<MenuVO> implements IMenuService {

	private MenuMapper menuMapper;

	public MenuServiceImpl(MenuMapper menuMapper) {
		super();
		this.menuMapper = menuMapper;
		this.baseMapper = menuMapper;
	}

	@Override
	public List<MenuVO> getMenuByUid(int userId) {
		return this.menuMapper.getMenuByUid(userId);
	}

	@Override
	public RoleMenuVO getItemByRid(int iroleid) {
		// TODO Auto-generated method stub
		return this.menuMapper.getItemByRid(iroleid);
	}

	@Override
	public List<MenuVO> getMenuByMenuIds(String menuids) {
		// TODO Auto-generated method stub
		return this.menuMapper.getMenuByMenuIds(menuids);
	}
	
	

}
